<?php
$content = new Models_Comment();
$comment = $content->getComment($id);
$adm = new Models_Adm();
$adm->showAdmButtons();
if($comment['active'] == '0')
{
    $active = 'icon-remove-sign';
} else {
    $active = 'icon-ok-sign';
}
if($comment['visible'] == '0')
{
    $visible = 'icon-eye-close';
} else {
    $visible = 'icon-eye-open';
}
?>
<div class="pull-right">
    <a href="/<?php $content->printPath() ?>adm/activecomment/<?php echo $id; ?>"><span class="btn"><i class="<?php echo $active; ?>"></i></span></a>
    <a href="/<?php $content->printPath() ?>adm/visiblecomment/<?php echo $id; ?>"><span class="btn"><i class="<?php echo $visible; ?>"></i></span></a>
    <a href="#"><span class="btn"><i class="icon-remove"></i></span></a>
</div>
<div>
    <p>Added: <?php echo $comment['created']; ?></p>
    <p>Name: <?php echo $comment['name'] . ' ' . $comment['surename']; ?></p>
    <p>Post: <?php echo $comment['post']; ?></p>
    <p>Title: <?php echo $comment['title']; ?></p>
    <div class="well"><?php echo $comment['body']; ?></div>
</div>